var head2 = document.querySelector(".head2");
var subjeck1 = document.querySelector("#subjeck1");
var subjeck2 = document.querySelector("#subjeck2");
var button1 = document.getElementById("button1");
var button2 = document.getElementById("button2");



button1.onclick = function () {
  subjeck1.style.display = "block";
  subjeck2.style.display = "none";
  head2.innerHTML = "<h5>" + "用户管理" + "</h5>";

  button1.style.color = "#3892F0";
  button1.style.backgroundColor = "#F0FAFF";
  button1.style.borderRight = "5px solid #2D8CF0";

  button2.style.color = "#000000";
  button2.style.backgroundColor = "#FFFFFF";
  button2.style.borderRight = "none";
};


button2.onclick = function () {
  subjeck1.style.display = "none";
  subjeck2.style.display= "block";
  head2.innerHTML = "<h5>" + "监察内容管理" + "</h5>";

  button1.style.color = "#000000";
  button1.style.backgroundColor = "#FFFFFF";
  button1.style.borderRight = "none";

  button2.style.color = "#3892F0";
  button2.style.backgroundColor = "#F0FAFF";
  button2.style.borderRight = "5px solid #2D8CF0";
};